package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SpecificRoutineDesignatorSubtype1 implements SpecificRoutineDesignator {

    private int beginIndex;
    private int endIndex;
    private RoutineType routineType;
    private SchemaQualifiedName specificName;

    public SpecificRoutineDesignatorSubtype1(int beginIndex,
                                             RoutineType routineType,
                                             SchemaQualifiedName specificName) {
        this.beginIndex = beginIndex;
        this.endIndex = specificName.getEndIndex();
        this.routineType = routineType;
        this.specificName = specificName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    @Override
    public RoutineType getRoutineType() {
        return routineType;
    }

    public SchemaQualifiedName getSpecificName() {
        return specificName;
    }

}
